package cn.yz.fresh.service.impl;

import cn.yz.fresh.dao.IGoodsDAO;
import cn.yz.fresh.pojo.Category;
import cn.yz.fresh.pojo.Goods;
import cn.yz.fresh.service.IGoodsService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * Created by Kim昌完 on 2017/8/31.
 */
@Service
public class GoodsServiceImpl implements IGoodsService{
    private IGoodsDAO goodsDAOImpl;
    @Override
    public List<Goods> queryAll(Category category) {
        return goodsDAOImpl.queryAllGoods(category);
    }

    public IGoodsDAO getGoodsDAOImpl() {
        return goodsDAOImpl;
    }

    public void setGoodsDAOImpl(IGoodsDAO goodsDAOImpl) {
        this.goodsDAOImpl = goodsDAOImpl;
    }
}
